package com.ymttest.common.enums;

public enum NotificationCountTypeEnum {
	/**
	 * 交易通知
	 */
	Trade(1),

	/**
	 * 站内信
	 */
	SiteMessage(2),

	/**
	 * 回帖
	 */
	ForumReply(3),

	/**
	 * 公告
	 */
	SiteNotice(4),

	/**
	 * 待缴费
	 */
	NeedCharge(5),

	/**
	 * 退款成功通知
	 */
	WeightRefundedSuccess(6),

	/**
	 * 待退款
	 */
	NeedRefund(7),

	/**
	 * 身份证
	 */
	IdCard(8),

	/**
	 * 投诉数量
	 */
	Complain(9),

	/**
	 * 闪购新订单计数
	 */
	ShangouNewOrderNum(10),

	/**
	 * 闪购新回复计数
	 */
	ShangouNewCommentNum(11);

	private int intValue;
	private static java.util.HashMap<Integer, NotificationCountTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, NotificationCountTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, NotificationCountTypeEnum>();
		}
		return mappings;
	}

	private NotificationCountTypeEnum(int value) {
		intValue = value;
		NotificationCountTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static NotificationCountTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}